package com.shanzmoo.db.module.member.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shanzmoo.db.module.member.domain.query.MemberAccountPageQuery;
import com.shanzmoo.db.module.member.domain.query.MemberTransPageQuery;
import com.shanzmoo.db.module.member.domain.vo.MemberAccountRecordVO;
import com.shanzmoo.db.module.member.domain.vo.MemberAccountTransVO;
import com.shanzmoo.db.module.member.entity.MemberAccountRecordEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 会员账户金额变动记录 Mapper 接口
 * </p>
 *
 * @author wangyudi
 * @since 2021-03-24
 */
public interface MemberAccountRecordMapper extends BaseMapper<MemberAccountRecordEntity> {

    IPage<MemberAccountRecordVO> queryByRequest(@Param("page") Page page, @Param("query")MemberAccountPageQuery query);

    Page<MemberAccountTransVO> queryTransListByRequest(@Param("page") Page page, @Param("query") MemberTransPageQuery request);
}
